package 二维数组;

import java.util.Scanner;

public class Qingliu{
	public static void main(String[] args) {
		int a=0;int b=0;int c=0;int d=0;
		int arr[][] =new int[5][6];
		Scanner sc =new Scanner(System.in);
		for (int i = 0; i < arr.length; i++) {
				int l=0;
				System.out.println("请输入第"+(i+1)+"个员工的编号：");
				arr[i][l]=sc.nextInt();
				System.out.println("请输入第"+(i+1)+"个员工忘打卡次数：");
				arr[i][l+1]=sc.nextInt();
				System.out.println("请输入第"+(i+1)+"个员工迟到次数：");
				arr[i][l+2]=sc.nextInt();
				System.out.println("请输入第"+(i+1)+"个员工早退次数：");
				arr[i][l+3]=sc.nextInt();
				System.out.println("请输入第"+(i+1)+"个员工旷工次数：");
				arr[i][l+4]=sc.nextInt();
		}
		for (int i = 0; i < arr.length; i++) {
			arr[i][5]=(arr[i][1]*10)+(arr[i][2]*20)+(arr[i][3]*20)+(arr[i][4]*100);
		}
		System.out.println("\t"+"员工编号"+"\t"+"忘打卡"+"\t"+"迟到"+"\t"+"早退"+"\t"+"旷工"+"\t"+"罚款数");
		for (int i = 0; i < arr.length; i++) {
			for (int j = 0; j < arr[i].length; j++) {
				System.out.print("\t"+arr[i][j]);
			}
			System.out.println();
		}
		
	}
}